<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE>
<html lang="zh-CN">
<% 
String path = request.getContextPath(); 
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="refresh" content='5; url=borrow.jsp'>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<base href="<%=basePath%>">
<title>borrow result</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/style1.css" rel="stylesheet">
</head>
<body>
<c:if test="${b_flag==10}">
<p >借书失败，库存不足，请重新借书...</p>
<br>
</c:if>

<c:if test="${b_flag==0}">
<p >归还失败，请重新操作...</p>
<br>
</c:if>

<c:if test="${b_flag==11}">
<p> 借出成功！</p><br>
</c:if>

<c:if test="${b_flag==1}">
<p> 还书成功！</p>
<br>
</c:if>

<div class="row">
				<br>
				<div class="col-md-4">
					<h3>
						图书查询
					</h3> 
					<br>
					<p>
					<a class="btn btn-primary btn-large" href="search.jsp">前往</a>
					</p>
				</div>
				
				<div class="col-md-4">
					<h3>
						继续借还
					</h3> 
					<br>
					<form action="recordshow" method="post">
					<p>
					<a class="btn btn-primary btn-large" href="recordshowServlet">前往</a>
					</p>
					</form>
				</div>
				<c:if test="${sessionScope.usertype==1}">
				<div class="col-md-4">
					<h3>
						图书/借书证管理
					</h3> 
					<br>
					<p>
					<a class="btn btn-primary btn-large" href="manage.jsp">前往</a>
					</p>
				</div>
				</c:if>
</div>
			


<div>
<button type="button" class="btn active btn-link" onclick="window.location.href='index.jsp'">
				退出
				</button>
 </div>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/scripts.js"></script>
</body>
</html>